export default {
  state: {
    num: 1,
    name: 'COCO'
  },

  getters: {
    getNum: state => state.num
  },

  mutations: {
    add(state, num) {
      state.num += num;
    }
  },

  actions:{
    uu({commit},num){
      commit('add',num)
    }
    // uu(context,num){
    //   context.commit('add',num)
    // }

  }
};
